{% extends 'base.html' %}

{% block content %}



<div class="panel panel-primary">
                <div class="panel-heading">
                    <h3 class="panel-title">修改实验室表</h3>
                </div>
                <div class="panel-body">
                    <form class="form-horizontal" action="" method="post">
                        {% csrf_token %}
                        <div class="form-group {% if error %}has-error{% endif %} ">
                            <label for="inputEmail3" class="col-sm-2 col-sm-offset-1 control-label">名称</label>
                            <div class="col-sm-6">
                                <input type="text" name="Exp_name"  class="form-control"  value="{{ Exp_obj.name }}" id="inputEmail3">

                                <span class="help-block">{{ error }} </span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 col-sm-offset-1 control-label">楼层</label>
                            <div class="col-sm-6">
                                <input type="text" name="Exp_floor"  value="{{ Exp_obj.floor }}" class="form-control" id="inputPassword3" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 col-sm-offset-1 control-label">房间号</label>
                            <div class="col-sm-6">
                                <input type="text" name="Exp_room_number"  value="{{ Exp_obj.room_number }}" class="form-control" id="inputPassword3" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 col-sm-offset-1 control-label">负责人</label>
                            <div class="col-sm-6">
                                <input type="text" name="Exp_principal"  value="{{ Exp_obj.principal }}" class="form-control" id="inputPassword3" >
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-offset-3 col-sm-10">
                                <button type="submit" class="btn btn-default">保存</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>

{% endblock %}